﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            IFlyable ifa = new Bird();
            Flyable(ifa);

            Vehicle v = new Plane();
            CarryPassange(v);
        }

        static void Flyable(IFlyable ifa) {
            ifa.Fly();
            ifa.Land();
            ifa.TakeOff();
        }

        static void CarryPassange(Vehicle v) {
            v.CarryPassange();
        }
    }
}
